import 'package:flutter_fronter_service/generated/json/base/json_field.dart';
import 'package:flutter_fronter_service/generated/json/goods_item_entity.g.dart';
import 'dart:convert';
export 'package:flutter_fronter_service/generated/json/goods_item_entity.g.dart';

@JsonSerializable()
class GoodsItemEntity {
	late int id = 0;
	late String name = '';
	late double price;
	late String picture = '';

	GoodsItemEntity();

	factory GoodsItemEntity.fromJson(Map<String, dynamic> json) => $GoodsItemEntityFromJson(json);

	Map<String, dynamic> toJson() => $GoodsItemEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}